// configure 配置  store 仓库   作用: 创建 store 对象
import { configureStore} from '@reduxjs/toolkit';
import countReducer from './slices/countSlice';
import zanReducer from './slices/zanSlice';
import heroReducer from './slices/heroSlice';

//配置 store 对象
let store = configureStore({
  //合并 reducer 的操作  {count: {value: 10}, zan: {value: 20}}
  reducer: {
    count: countReducer,
    zan: zanReducer,
    hero: heroReducer
  }
});

//暴露
export default store;
